package Month10.day1009;

public class TestString {
    public static void main(String[] args) {
        String s1 = "abc";
        String s11 = "abc";
        String s2 = new String("abcde");
        String s3 = new String("abd");
        System.out.println(s1.compareTo(s11));
        System.out.println(s1.compareTo(s2));
        System.out.println(s2.compareTo(s3));
    }
}
